import request from "../utils/request";

/**
 * 获取商品分页列表数据
 */
export const getGoodsListApi = ({ page, limit, category1Id, category2Id }) => {
  return request(`/goods/list/${page}/${limit}`, {
    category2Id,
    category1Id,
  });
};

/**
 * 获取商品详情
 */
export const getGoodsDetailApi = (goodsId) => {
  return request(`/goods/${goodsId}`);
};
